/*
 * @Description: 状态管理
 * @Author: DHL
 * @Date: 2021-12-14 10:37:02
 * @LastEditors: DHL
 * @LastEditTime: 2021-12-14 10:37:02
 */

import type { App } from 'vue';
import { createPinia } from 'pinia';

const store = createPinia();

export function setupStore(app: App<Element>) {
  app.use(store);
}

export { store };
